package com.lsw.java.thread;

import java.util.ArrayList;
import java.util.List;

public class ThreadContext {

    static class StaticObject {
    }
            public static void main(String[] args) {
               List<StaticObject> list = new ArrayList<StaticObject>();
                int i = 1;

                //不断的向堆中添加对象
//               while (true) {
//                        list.add(new StaticObject());
//                        i++;
//                        System.out.println(i);
//                        System.out.println(list.size());
//               }

            }

}
